import "reflect-metadata";

export function get(reqPath: string): MethodDecorator {
  return (targetClassPrototype, methodname, descriptor) => {
    console.log("方法装饰器--", reqPath);
    console.log(
      Reflect.getMetadata("design:returntype", targetClassPrototype, methodname)
    );
    Reflect.defineMetadata("path", reqPath, targetClassPrototype, methodname);
  };
}
